Amelia Earhart, who defied the male-dominated world of aviation in the 1930s, inspired Maggie Shipstead’s novel