The gauge-invariant quantization method for multidimensional Hamilton systems