Thermally Induced Dopant Activation, Dopant Deactivation, and Polymorphic Phase Transformations in Ga2O3