Methods to Attack and Secure the Power Grids and Energy Markets