Effect of fluorescence, Bremsstrahlung and annihilation radiation on the spectra and energy deposition of gamma rays in bulk media