The stopping and ranges of ions in matter