Renormalization-scheme-invariant QCD and QED: The method of effective charges