Optimizing the conditions to measure the hyperfine splitting in the μp ground state