Exploding foil devices for shaping meg-amp current pulses