A light complex scalar for the electron and muon anomalous magnetic moments