A complete model of (EPROM)-P-2 memory cells for circuit simulations