how does copper get separated from a rock