MeV magnetosheath ions energized at the bow shock