Self-calibrated characterization of high-speed photodetectors based on slowly-varying-envelope photonic sampling