Dynamic prediction of optical and chromatic performances for a light-emitting diode array based on a thermal-electrical-spectral model