Deep Structure of the Earth and Concentration of Metals in the Lithosphere: A Geodynamic Approach