An optical study of III-nitride semiconductor devices, their thermal properties and degradation mechanisms