phosphate-containing compound metabolic process