Layer-wise analysis of deep networks with Gaussian kernels