On a class of stochastic differential equations used in quantum optics