Revealing the Structure of Deep Neural Networks via Convex Duality