Quark-antiquark potential with retardation and radiative contributions and the heavy quarkonium mass spectra