Theory of open systems: II. An application; The single-mode laser