A Nonlinear Model for Open Cross-Section Thin-Walled Beams - Part I: Formulation