Line Shape Effects in the Operation of Thulium and Erbium Doped Fiber Amplifiers