Text this: Energy management systems of grid-connected photovoltaic generation with energy storage system using particle swarm optimization