Analytic and Gevrey solutions of non-linear partial differential equations