Nonlocal priors for Bayesian variable selection in generalized linear models and generalized linear mixed models and their applications in biology data