General theory of the gauge transformation for vector meson fields