Photochemical partitioning of the reactive nitrogen and chlorine reservoirs in the high altitude stratosphere