Hamas is open to freeing hostages, five-year truce in Gaza, official says