A regular solution model for phases with several components and sublattices, suitable for computer applications