Links in surfaces and Laplacian modules