Photonic crystal optical switch using line defects