Analysis and modeling of on-chip high-voltage generator circuits for use in EEPROM circuits