Equilibrium charge state distributions of beam foil excited molecular fragments exiting carbon foils