Multi-stage discrete time dynamic average consensus