An Extended Version of the Regular Solution Model for Stoichiometric Phases and Ionic Melts.