xmimsim-pymca: nchannels determination

Now based on maximal excitation energy AND xmax value