Self assembly of three-dimensional Lu2O3:Eu3+ inverse opal photonic crystals, their modified emissions and dual-functional refractive index sensing.