Energization of solar wind ions by reflection from the Earth's bow shock