Electrical excitation and detection of magnetic dynamics with impedance matching