Empirical likelihood for generalized linear models with fixed and adaptive designs