Quantum defect orbital study of electronic transitions in Rydberg molecules: ammonium and fluoronium radicals