Spectral least-squares method for elliptic interface problems