An automated branch assignment procedure for rovibrational spectra of asymmetric-top molecules