US official says mediators are preparing to implement Gaza cease-fire and hostage-swap deal before final agreement