The energy flow method for modeling and optimization of Organic Rankine Cycle (ORC) systems