Quantum jump approach for work and dissipation in a two-level system.