Dual-Modal Diffusion Model for Synthetic Face Generation and Recognition