Long period grating in a liquid crystal waveguide