A large-scale, self-consistent thermal simulator for the layout optimization of power III-V field-effect and bipolar transistors