Dimers on surface graphs and spin structures. I - David Cimasoni; Nicolai Reshetikhin (Commun. Math. Phys., 2006)