A criterion to rule out torsion groups for elliptic curves over number fields