Polar vortices in planetary atmospheres