Influence of molecular weight on phase transitions and alignment of a thermotropic nematic polyester