How Roald Dahl’s grief paved the way for his brave female protagonists