Changed method of linear interpolation of for KDEs between energy bins.