Spectral clustering based on matrix perturbation theory