The recursive algorithm for the optimal static output feedback control problem of linear weakly coupled systems