Switchable photonic‐crystal‐grating diode using coherent atomic gas