Energy straggling of heavy ions (A∼100, E/A∼1 MeV/amu) in solids and gases, the limiting factor of the charge resolving power of energy-loss detectors