General model for the site population of heavy ions implanted in metals