Waveguide applications of nonlinear optical polymer electrets with three-dimensional patterning of the dipole polarization