Selective surface purification via crater eruption under pulsed electron beam irradiation