The intriguing role of module criticality in the generalization of deep networks