Quantum dynamics of laser-induced desorption from metal and semiconductor surfaces, and related phenomena