An automated system to control the polarization voltage of silicon detectors