Deep Neural Network Trained to Mimic Nonlinear Economic Model Predictive Control: an Application to a Pendulum Wave Energy Converter