Electronically synthesized Nyquist pulses for photonic sampling of microwave signals