gold mining inputs processes and outputs