Numerical simulation of viscous transonic flows over an airfoil