Determinants of Laplacians on graphs