Measuring the curvature of the Universe