Desorption induced by electronic transitions