Photoemission and inverse photoemission spectroscopy of NiO