Branching Ratios in Vacuum Ultraviolet Photodissociation of CO and N2: Implications for Oxygen and Nitrogen Isotopic Compositions of the Solar Nebula