Optical properties of conducting polymers in nano-scale periodic structure, microcavities and photonic crystals