A family of mimetic finite difference methods on polygonal and polyhedral meshes