Modified polyimide side-chain polymers for electrooptics