A comparison of gas-phase, plasma, sputtering and beam-foil excitations