Fluorescence switch of dye-infiltrated SiO2 inverse opal based on acid-base vapors or light