Polarised muon spins in pulsed magnetic fields: a new method to study delayed muonium formation