Rationalisation of second law analysis of heat exchangers