Doctor tells of 'nightmare' leaving Gaza hospital