Analysis and Synthesis of Discrete-Time Repetitive Controllers