Growth, structure and epitaxy of ultrathin NiO films on Ag(001)