Application of automated REM analysis in depression.