Theoretical and experimental study of the shape memory effect of beams in bending conditions