Gain fitting for travelling wave laser model (TWLM)