Mechanisms of gene flow in archaea