Modeling, characterization, and control of the electrical-thermal interactions in advanced packages