TSO-STO: A two-step approach to the optimal operation of heat storage systemswith variable temperature tanks