Thermodynamical Calculations of Solubilities of Nitrogen and Hydrogen in Water at High Pressures