Bowing of the defect formation energy in semiconductor alloys