A review of upstream and bow shock energetic-particle measurements