Calculation of binding energies and masses of quarkonia in analytic QCD models