Shot-by-shot 250 kHz 3D ion and MHz photoelectron imaging using Timepix3