Measurement of ammonia hyperfine structure with a two-cavity maser