Plate tectonics and sandstone compositions