Second law analysis for the optimization of plate heat exchangers