Pattern synthesis of antennas based on a modified particle swarm optimization algorithm