I have performed a optics calculation for a nanocluster and obtained the absorption, refractive index and dielectric function graphs w.r.t. frequency. I wish to calculate the optical loss and optical gain of the material. What are the crucial parameters required for that?