River flow forecasting using artificial neural networks