Causality-Encoded Diffusion Models for Interventional Sampling and Edge Inference