Cas9 function and host genome sampling in Type II-A CRISPR–Cas adaptation