The formation of hazardous substances in industrial accidents