fix Next Event Estimation
change the callback interface
add a flag to switch NEE