Enabling radiative transfer on AMR grids in CRASH