Stability analysis of iterative optimal control algorithms modelled as linear unit memory repetitive processes