Time series prediction with recurrent neural networks trained by a hybrid PSO–EA algorithm