Neutron capture of 22Ne, 30Si, and 40Ar at thermonuclear energies