How to recover from a bad night’s sleep