Economic impact of V2G technology in a smart microgrid