Response-function measurement of an NE213 scintillator using the 2H(d, n)3He reaction