Middle-of-the-night insomnia is common. These techniques might help.