Locally Constrained Diffusion Process on Locally Densified Distance Spaces with Applications to Shape Retrieval