A new method to measure and calculate light intensity and light quality simultaneously by using portable spectrometer