Design and Test of an HV-CMOS Intelligent Power Switch With Integrated Protections and Self-Diagnostic for Harsh Automotive Applications