A robustness metric for cascading failures by targeted attacks in power networks