Semiparametric Generalized Linear Models