Multimode theory of single-photon subtraction. (24th August 2016)