Study of the growth of ultrathin films of NiO on Cu(111)