The connection between light output of light-emitting diodes and their rise and fall times