Input and output in damped quantum systems: Quantum stochastic differential equations and the master equation | Synapse