Calculating the optical properties of multidimensional heterostructures: Application to the modeling of quaternary quantum well lasers | Synapse