Mechanical effects of chemical degradation of bonded geomaterials in boundary value problems