The quasistationary distributions of level-independent quasi-birth-and-death processes