Optimal Generators for Quantum Sensing.