The role of coherence in the non-equilibrium thermodynamics of quantum systems