The gauge-invariant method for tunneling in Hamilton systems