An agent-based model for the analysis of the energy sources diffusion dynamics