Do you sleep with lights, TV on? It could make you gain weight, study says