Abelian gauge potentials on cubic lattices