Electronic excitation and quenching of atoms at insulator surfaces