Lasso and elastic-net regularized generalized linear models