A Data Mining-Based Dynamical Anomaly Detection Method for Integrating with an Advance Metering System