Vulnerability Analysis of Smart Meters