Resonant charge transfer at dielectric surfaces