Title: Spectroscopic analysis of erbium-doped silicon and ytterbium-doped indium phosphide