Mimetic finite differences for nonlinear and control problems