Partial least squares Regression for generalized linear models