An energy-conserving co-rotational procedure for the dynamics of planar beam structures