Thermal Power Calculation for Switching Regulators and LDOs