Interpretation of Flat Energy Spectra Upstream of Fast Interplanetary Shocks