Approximate Solutions of Differential Equations by Using the Bernstein Polynomials