Energy loss for electrons in the Heliosphere and local interstellar spectrum for solar modulation