Influence of refractive index inhomogeneity and interface roughness on the radiating properties of a point source in a layered medium