Splitting shock heating between ions and electrons in an ionized gas