Multiscale persistent homology