The history of many deserted towns, scattered across the western states, is revealed in nineteenthand twentieth-century photography