Mass and energy analysis of positive ions emitted from metallic targets bombarded by heavy ions in the keV energy region