Modeling phosphorus in the environment