Systematic study of low-mass electron pair production in p-Be and p-Au collisions at 450 GeV/c