Persistent Homology and Partial Similarity of Shapes