Bifurcation analysis and control of periodic solutions changing into invariant tori in Langford system