A comprehensive approach to single and double line contingency screening