Vortex polarization dynamics in a square magnetic nanodot