Active structural control by neural networks