Ion thermalization and wave excitation downstream of Earth's bow shock: A theory for Cluster observations of He2+ acceleration