A Criterion for Nonvanishing of Determinants