NoiseCtrl: A Sampling-Algorithm-Agnostic Conditional Generation Method for Diffusion Models