General Algorithm for Characterization of Donor-Acceptor Pair Recombination Processes in Solid-State Materials