added a more efficient variant of foundation::knn::Tree::build() that moves the input points into the tree rather than copying them.
the EDF/light importance multipliers were not working correctly.

specifically, the renderer::LightSampler::evaluate_pdf() method failed to take them into account.
minor code simplification.
optimized foundation::daylight_ciexy_to_spectrum().