how is copper extracted from the earth