Radiative decays of the J/ psi into gamma pi + pi - and gamma K+K-