Nanotechnologies for the fabrication of two-dimensional photonic crystals