Ancient and recent selective pressures shaped genetic diversity at AIM2-like nucleic acid sensors