Band structure and cluster model calculations of LaNiO3 compared to photoemission, O 1s X-ray absorption, and optical absorption spectra