The effect of geometry on the stability of flow patterns in stirred tanks