Plate Tectonics and Geochemical Composition of Sandstones