A sub‒domain smoothed Galerkin method for solid mechanics problems