Optical design and evaluation of a three-dimensional imaging and ranging system based on time-correlated single-photon counting.