I enhanced SR_EELS_CorrectionPlugin.

The goal of the enhancement was to optimise the automatic detection. The
code is much more compact now and the optimisation of maxCount is much
more integrated by using a do-while-loop.