new 3WayValve implementation without discontinuities

Changed thermostatic3WayValve model. When both inlet enthalpies reach the same value, k is set to zero to avoid a discontinuous change when the enthalpy difference changes sign. @damienpicard can you verify this implementation with the heatingSystem implementation?