Analysis of electrothermal effects in bipolar current mirrors