Evaluation of the Impact of the Size of Storage Devices in Grid-Connected Microgrids