Calculation of lepton magnetic moments in quantum electrodynamics: A justification of the flexible divergence elimination method | Synapse