How early you wake up affects the quality of sleep you get at night