Signatures of quantum chaos in rare-earth elements: II. Characterization of the energy eigenvalues and dipole moments of Ce I and Pr I