Theory of the effect of magnetic field on the excitonic photoluminescence linewidth in semiconductor alloys