Optical switches based on partial band gap and anomalous refraction in photonic crystals modulated by liquid crystals.