Monolithically-integrated optoelectronic circuit for ultrafast sampling of a dual-gate field-effect transistor