Dirichlet-to-Neumann mappings and finite-differences for anisotropic diffusion