Synthesis, thermal and optical properties of liquid crystalline terpolymers containing azobenzene and dye moieties