Linear irreversible heat engines based on local equilibrium assumptions