Direct spectroscopic measurement of mounting-induced strain in high-power optoelectronic devices