Soft-linking of a power systems model to an energy systems model