Adaptation of topoisomerase I paralogs to nuclear and mitochondrial DNA