Simulation Method for Investigating the Use of Transition-Edge Sensors as Spectroscopic Electron Detectors — arXiv2