On the flux and the energy spectrum of interstellar ions in the solar system