Natural capital optimization of carbon, water, and tailings in mining and metals