DrSMC : a sequential Monte Carlo sampler for deterministic relationships on continuous random variables