Improving the counting efficiency in time-correlated single photon counting experiments by dead-time optimization