Take a Digital Photo of an Atomic Spectrum