Integration of artificial neural networks for multi-source energy management in a smart grid