Structure and morphology of ultrathin NiO layers on Ag(001)