how does sleep affect mental health