Characterization of disruption mitigation via massive gas injection on MAST