A non-linear model for the dynamic s of open cross-section thin-walled beams - Part I: Formulation