Deuterium, tritium, and helium-3 production in solar flares.