CA-PCA: Manifold Dimension Estimation, Adapted for Curvature