Bending of nanobeams in finite elasticity