The relationship between volume and elasticity in polymer glasses