iPhone alarms could automatically change to give users a full night's sleep