Grain growth and crack formation in NiO thin films by swift heavy ion irradiation