The confining interaction and radiative decays of heavy quarkonia