How to stay asleep all night if you keep waking up — an expert explains