Asymptotic expansion and extrapolation for Bernstein polynomials with applications