Secular variations in kerogen structure and carbon, nitrogen and phosphorus concentrations in pre-Phanerozoic and Phanerozoic sedimentary rocks