Bernstein splines