add nontrivial dependence on background trajectory when resampling foreground states in the CTBN blinking model