Energy-loss straggling for protons and helium ions