Synthesis and thermal behavior of liquid-crystalline block copolymers containing both main-chain and side-chain mesomorphic blocks