Operation of Microgrids with Conventional and Virtual Energy Storage Systems