Measuring the maximum capacity and thermal resistances in phase-change thermal storage devices