Photochemistry of carbon nutrients and contaminants