Designing a Smartphone Spectrometer