Simulation and analysis of source-related effects for KATRIN