Real time wave forecasting using neural networks