Predicting X-ray photoelectron peak shapes: The effect of electronic structure