Anisotropy of core-level spectra and the correlation with transport properties of epitaxial lanthanum nickel oxide thin films