The Chemistry of Phosphate and Nitrogen Compounds in Sediments