Retrospective cost adaptive control for nonminimum-phase discrete-time systems, part 1: The ideal controller and error system