Fractional inequalities of the Hermite–Hadamard type for $ m $-polynomial convex and harmonically convex functions