Mössbauer and x-ray absorption spectroscopic measurements on the new mixed-valence system EuNi2P2