Text this: Truncation error estimation for Newton–Cotes quadrature formulas