Spectral Estimators for Structured Generalized Linear Models via Approximate Message Passing