Treatment of non-ideality in the multiphase model SPACCIM – Part 1: Model development