Direct and heterodyne detection and other applications of quantum stochastic calculus to quantum optics