Approximate solutions of singular differential equations with estimation error by using Bernstein polynomials