Vorticity of magnetic vortices controlled by exchange bias and shape anisotropy in polygonal nanomagnets