The analytic structure of dynamical systems and self-similar natural boundaries