Heavy-ion beams to diagnose traces of heavy-element impurities in a hydrogen plasma discharge