Partition Functions and Thermodynamic Properties of Nitrogen and Oxygen Plasmas