A pseudo-unsteady method for the computation of transonic potential flows