Radiative transitions of baryons in the MIT bag