Average unit-cell approach to diffraction on Thue–Morse sequence and decorated quasicrystals