An iterative Sum-of-Squares optimization for static output feedback of polynomial systems