Heuristic optimization applied to ANN training for predicting renewable energy sources production