Miners, which often use fossil fuels as the energy source in their operations, are shifting to renewable generation as the cost of wind and solar power drops.