Heights of algebraic numbers and Szegő’s theorem