The duality relation between Glauber dynamics and the diffusion - annihilation model as a similarity transformation