Denoising Diffusion-Based Control of Nonlinear Systems