Optimal Laplacian regularization for sparse spectral community detection