Dynamic mechanical control of local vacancies in NiO thin films