The PNarec method for detection of ancient recombinations through phylogenetic network analysis.