Microgrids and EVs can make magic with the right market signals