Adaptive Lasso for generalized linear models with a diverging number of parameters