Thermal Simulator for Advanced Packaging and Chiplet-Based Systems