Crystal-field energy levels on Pr2NiO4 by inelastic neutron scattering and heat-capacity measurements