Scientists discover secret to waking up alert and refreshed