Integrable Hamiltonian systems with vector potentials