Surface physics of phosphors and semiconductors