Machine Learning Based Spectroscopy from RGB Images of Optical Phantoms