A heat integration method with location-dependent heat distribution losses