Optimized TCSPC method for the readout of time-tagged SNSPD arrays