Dielectron production in Ca+Ca collisions at 1.0 and 2.0 A GeV