Radiative transitions of doubly charmed baryons in lattice QCD