On the optimization and generalization of overparameterized implicit neural networks