how is copper separated from its compound