Optical properties and diffraction effects in opal photonic crystals