Nonuniform bending theory of hyperelastic beams in finite elasticity