Symmetric Galerkin boundary element method for quasi-brittle-fracture and frictional contact problems