Optimization of epitaxial layers for power bipolar-MOS transistor