Optimized Electrothermal Design of Integrated Devices through the solution to the Non-linear 3-D Heat Flow Equation