Smart Grid Attacks and Countermeasures