Influence of in-plane displacements at the boundaries of rigid-plastic beams and plates