A children's book that gets read every night becomes more than just a story. Here’s how to write for that special bedtime ritual.