what is the refining process of mining phosphates