Bacterial gene import and mesophilic adaptation in archaea