How to make microgrid economics work