Glacial lake drainage: a stability analysis