Phosphorus Chemistry in the Earth's Upper Atmosphere