Automatic sleep stage detection using consecutive and non-consecutive approach for elderly and young healthy subject