Charmed baryons in quantum chromodynamics