Using Newton's method to model the spatial light distribution of an led with attached secondary optics