Analysis of photonic crystals devices, including photonic crystal waveguide, waveguide bend, lens, etc.