Local properties of neural networks through the lens of layer-wise Hessians