Soft X-ray emission from metals and alloys