The novelist talks to John Mullan about how he came to write his Booker-winning novel