O K-edge X-ray absorption of ultrathin NiO deposited in-situ on Ag(001)