Vacancy defects induced changes in the electronic and optical properties of NiO studied by spectroscopic ellipsometry and first-principles calculations