A new approach to the determination of the major and minor constituents in silicate and phosphate rocks