High‐speed electrical sampling using optical second‐harmonic generation