Tuning visible emission by choosing excitation wavelength in Mg-doped ZnO/silica composites