The local adsorption geometry of CO and NH3 on NiO(100) determined by scanned-energy mode photoelectron diffraction