Curvature as a tool for evaluating dimensionality reduction and estimating intrinsic dimension