Maximum power point tracking of PV based on particle swarm optimization algorithm