how do you separate the ore form the other rock in mining