Atomic and molecular physics of controlled thermonuclear fusion