Alloy broadening of the near-gap luminescence and the natural band offset in semiconductor alloys