Brainstem control of the events of rem sleep