Energy spread of ion beams passing a gas stripper