Core excitations. Application to microanalysis