Loop-gain optimization of unstable-non-minimum phase feedback systems