On-chip QNN: Towards Efficient On-Chip Training of Quantum Neural Networks