Spectroscopic study of a pulsed argon rf ICP discharge: stepwise excitation in the afterglow and its application in optical spectroscopy