Updated luminous flux computation to approximate integral using the trapezoid rule.