Open-system approach to nonequilibrium quantum thermodynamics at arbitrary coupling