Bridging the real-synthetic gap in microscopy with inversion-based diffusion