Branch and cut algorithms for detecting critical nodes in undirected graphs