Measurement of third-order nonlinearities of side-chain-substituted polymers