NREM and REM: cognitive and energetic gains in thalamo-cortical sleeping and awake spiking model