Local polarization and valence distribution in LaNiO3 / LaMnO3 heterostructures