Characterizing Temperature and Strain Variations with Qubit Ensembles for Their Robust Coherence Protection.