Optimization of neural network based on genetic algorithm and BP