Gas Phase Formation and Photodissociation Spectroscopy of Mass Selected Nitrogen and Oxygen Substituted Carbon Clusters