Automatic reaction mapping and reaction center detection