Direct and adjoint global stability analysis of turbulent transonic flows over a NACA0012 profile