how is copper extracted from its ore