Effect of Spectral Diffusion on the Coherence Properties of a Single Quantum Emitter in Hexagonal Boron Nitride.