Improving avalanche robustness of SiC MOSFETs by optimizing three-region P-well doping profile