Studies relating to energy deposition near an interface between two media exposed to photons and electrons