Study: Sleeping with lights on, weight gain are linked