Spectral gradient methods for linearly constrained optimization