Kinematic compensation in penetration of ions in matter