Relative dielectron yields in p + p and p + d interactions from Ebeam = 1.0–4.9 GeV