Optimal operation of heat exchanger networks through energy flow redistribution