Safety Analysis of AMI Networks through Smart Fraud Detection