Greedy approximations by signed harmonic sums and the Thue–Morse sequence