Post-Newtonian approximations in cosmology