A comprehensive method for assessing the resilience of power networks in the face of an intelligent adversary