Persistent Homology for High-dimensional Data Based on Spectral Methods