How to model LEDs and other complex sources