Second law investigation on an integrated power, cooling and district water heating system