Radiative decay of ρ0 and φ mesons in a chiral unitary approach