Calculating spreading resistance in heat sinks