Quantum stochastic semigroups and their generators