Iterative learning control, with applications to a wafer-stage