Cathodoluminescence and Photoluminescence: Theories and Prac