Developments of optically nonlinear polymers and devices