Measurement of cross sections and azimuthal asymmetries of dielectron production in Au+Au and U+U ultra-peripheral collisions in