Train carrying hazardous materials derails outside Detroit