Energy-loss measurements of K+ ions in head-on collisions with He, H2 and D2