generalized additive models: an introduction with r