40 cars from coal train derail in northern Minnesota