The novelist’s career was shaped by his experience of espionage – and influenced the work of spies. Source