Solution of the inverse steady state convection problem in a porous medium by adjoint equations