how is copper mined and processed