Dynamic control of the optical properties of a liquid crystal waveguide by means of an applied electric field