A viscous inverse method for aerodynamic design