Control for analog-to-digital conversion, optical receiving device, an optical receiving method and apparatus for compensating for waveform distortion