Theory of anisotropic thin-walled closed-cross-section beams