what is the purpose of mining of gold