THE OPTICAL–INFRARED EXTINCTION CURVE AND ITS VARIATION IN THE MILKY WAY