Atomistic studies of energies and structures of (hk0) surfaces in NiO