Investigating materials by wave or particle radiation secondary emission incident electron beam and measuring excited X-rays