Curvature inequalities for operators in the Cowen-Douglas class and localization of the Wallach set