Electro-optic waveguide switch in nematic liquid crystals