Repeated interactions in open quantum systems