The radial dependence of the solar energetic particle flux