Sleeping with a light on is bad for your health, study finds