Spacetime curvature from ultrarapid measurements of quantum fields