On the interaction of solitary waves of flexure in elastic rods