Reference-based comparison of adaptive immune receptor repertoires