Time series clustering by a robust autoregressive metric with application to air pollution