A fully coupled diffusional-mechanical formulation: numerical implementation, analytical validation, and effects of plasticity on equilibrium