Cold-target recoil-ion momentum spectroscopy studies of capture from atomic and molecular hydrogen by O 8+ and Ar 8+