Matrix inversions for chromosomal inversions: A method to construct summary statistics in complex coalescent models