Spatial cross-validation of elastic net models for some generalized linear models