Retrieving the energy-loss function from valence electron energy-loss spectrum: Separation of bulk-, surface-losses and Cherenkov radiation.