Dynamic polarization of protons, deuterons, and carbon-13 nuclei: Thermal contact between nuclear spins and an electron spin-spin interaction reservoir