Structure optimization and learning of artificial neural network by genetic algorithm