Propagation of spectral functions and dilepton production at SIS energies