An Adaptive Approach for Anomaly Detector Selection and Fine-Tuning in Time Series