Photocrosslinkable polymers with stable second-order optical nonlinearity