Insulating state of ultrathin epitaxial LaNiO{sub 3} thin films detected by hard x-ray photoemission