Solution space and storage capacity of fully connected two-layer neural networks with generic activation functions