Linear-Mode Gain-Modulated Avalanche Photodiode Image Sensor for Time-of-Flight Optical Ranging