Digital implementation of a two-way coherent phase transfer over optical fiber for remote clocks comparisons