Thedeconfinement phase transition in Yang-Mills theory with general Lie group G