post_hoc_chi2 function

Performs post hoc analysis for chi-squared or Fisher's exact test