Multiscale Geometric Methods for Data Sets II: Geometric Multi-Resolution Analysis