Quantification of photoinduced and spontaneous quantum-dot luminescence blinking