Generalized additive mixed models using mgcv and lme4