Radiative transfer in explosive phenomena in compact objects