Exploiting kinetics and thermodynamics to grow phase-pure complex oxides by molecular-beam epitaxy under continuous codeposition