Probing cosmic plasma with giant radio pulses