Approximate trivariate integration and inequalities for convex functions