Tuning optical properties of opal photonic crystals by structural defects engineering