Helium and nitrogen enrichment in massive main-sequence stars: mechanisms and implications for the origin of WNL stars