TerDiT: Ternary Diffusion Models with Transformers | Synapse