Simulation of conditioned diffusion and application to parameter estimation