Depth-resolved charge reconstruction at the LaNiO3/CaMnO3 interface