How to stop nightmares, according to a sleep expert