Accurate third-order correlation energies for closed-shell systems. II. Two- and four-electron systems