Understanding deep neural networks through the lens of their non-linearity