Photonic delay line using electrically switched gratings in polymer dispersed liquid crystals