Tuning element distribution, structure and properties by composition in high-entropy alloys