Reactive control of a wave energy converter using artificial neural networks