Optimization of Time-Variant Autoregressive Models for tracking REM - non REM transitions during sleep