Hierarchical approach to modelling of liquid-crystalline polymers