Characterizing residual reflections within semiconductor lasers, integrated sources, and coupling optics