Quantifying the influence of local meteorology on air quality using generalized additive models