Pure discrete spectrum dynamical system and periodic tiling associated with a substitution