Theory of composite thin-walled opened-cross-section beams