Phase-diagram-related problems in thermoelectric materials: Skutterudites as an example