Electrocardiogram Synthesis Using Denoising Diffusion Probabilistic Models And Bidirectional State-Space Models