Automated diffraction tracking and inversion for EM velocity estimation