Solving differential equations for Feynman integrals by expansions near singular points