On the edge of the Salar Uyuni salt flats in Bolivia is a train graveyard, a rusting reminder of the region's former prosperity now decaying slowly into the desert.