Correlations in quantum thermodynamics: Heat, work, and entropy production