Dilepton anisotropy from p + Be and Ca + Ca collisions at BEVALAC energies