Intermediate valence state of cerium in CeNi