The mimetic finite difference method on polygonal meshes for diffusion-type problems