Monotone switches in implicit algorithms for potential equations applied to transonic flows