Two spectral gradient projection methods for constrained equations and their linear convergence rate