Optical Absorption and Emission Mechanisms of Single Defects in Hexagonal Boron Nitride.