Forget the cliche of the author on a laptop at a coffee shop – some of the most renowned writers wrote their greatest works in unexpected places.