An enhanced constitutive model for quasi-brittle rocks with localized damage