Control of storage elements in an islanded microgrid with voltage-based control of DG units and loads