Analytical calculations of switch-on time and timing jitter in diode lasers subjected to optical feedback and external light injection