Adaptive control of nonminimum phase systems