Recently, during the middle of the night, I scared my wife--and myself--when I fainted in the bathroom while urinating.  When I saw my doctor about the episode, he said I might have a problem related to urination after a deep sleep.  Would you please explain what causes this?