Analytical energy loss distribution for accurate high resolution depth profiling using medium energy ion scattering