A Generalized Surface Loss for Reducing the Hausdorff Distance in Medical Imaging Segmentation