Structural complexity and neural networks