Modelling of semi-rigid joints and their influence on the behaviour of structures