Evolutionary model for energy trading in community microgrids using Hawk-Dove strategies