Multivariable stability margin optimization with decoupling and output regulation