the number of degrees of freedom of a molecule of the gas is