Generation of secondary electrons