Statistical mechanics of a multilayered neural network.