Cyber Attacks on Power Grids: Causes and Propagation of Cascading Failures