updated use of astropy.cosmology calculations for newer versions