Comparison of different excitation methods for X-ray spectral analysis