Analysis of a diffusive SIS epidemic model with spontaneous infection and a linear source in spatially heterogeneous environment