A study of ESD induced effects in high-voltage n-MOS and p-MOS transistors