Mathematical Phase Model of Neural Populations Interaction in Modulation of REM/NREM Sleep