Ion and electron heating at quasi-parallel bow shocks