Linking continuum and lattice quark mass functions via an effective charge