Quasi-Frobenius Rings and Generalizations: QF-3 and QF-1 Rings