Studies of NiO thin film formation by atomic layer epitaxy