Teens’ sleep duration affected by mental health, study finds