Apparatus for in-beam hyperfine interactions and g-factor measurements: Design and operation