draw_intensity function

Generic function for simulating from NHPPPs given the intensity function.