A geometrically exact approach to lateral-torsional buckling of thin-walled beams with deformable cross-section