Orientation kinetics of thermotropic main-chain liquid-crystalline polymers in a magnetic field