Site of Preference Energy and Selective Uptake of Transition-Metal Ions from a Magma