Electrical conductivity of the quark-gluon plasma from the low energy limit of photon and dilepton spectra