Surface hydroxylation and local structure of NiO thin films formed on Ni(111)