Generalized word shift graphs: a method for visualizing and explaining pairwise comparisons between texts