Penalty Methods for Constrained Problems in Nonlinear Elasticity