Crystal Chemistry and Fractionation of the Ore-Forming Elements in the Earthʼs Crust