Enhanced C++ port of the Physics routines used by PyMca