The Gap-Shifted Boundary Method for solid mechanics problems: Linear elasticity, hyperelasticity and elastoplasticity