Stability and Generalization of Quantum Neural Networks