An energy market for rural, islanded microgrids