The static potential in quantum chromodynamics