Hamiltonian engineering with constrained optimization for quantum sensing and controlMichael F. O'KeeffeLior Horeshet al.2019New Journal of Physics