Emma Donoghue’s historical novel was inspired by a train crash in late 19th-century France.