Function for combining outputs from mediations function and calculating quantities of interest. For use with multiple imputation procedures.