The equation of state and heat capacity of nitrogen at high pressures determined from speeds of sound