Enhancement of electrooptic coefficient of doped films through optimization of chromophore environment