Distribution of chain ends at the surface of a polymer melt: Compensation effects and surface tension