Atomic total electron-capture cross sections from C-, O-, F-, and S-bearing molecular gases forMeV/uH+andHe+projectiles