Spectral measure of the Thue–Morse sequence and the dynamical system and random walk related to it