Nucleosynthesis in thermonuclear supernovae