Bernstein-type approximation of smooth functions