Interferon-gamma inhibits central nervous system remyelination through a process modulated by endoplasmic reticulum stress.