Determinants of Dirac operators and thirring model partition functions on Riemann surfaces with boundaries