The catastrophic collapse of a dam at a mine in Brazil has exposed a darker side of an industry that the world depends on.