A physics-based, accurate spice model of impact-ionization effects in bipolar transistors