average cost of gold mining