How did the scientists explain the relationship between the colors emitted and the structure of the atom?