Text this: Time-correlated single-photon counting system based on a monolithic time-to-amplitude converter.