Weighted Castelnuovo–Mumford regularity and weighted global generation