Modeling of solid–liquid equilibria for systems with solid-complex phase formation