A locally convergent rotationally invariant particle swarm optimization algorithm