Calculation of determinants using contour integrals