Boundary element method for the strain-softening response of quasi-brittle materials in compression