Bending of beams in finite elasticity and some applications