Principal Manifolds and Nonlinear Dimension Reduction Via Local Tangent Space Alignment