PENELOPE: a graph based logic simulator for MOS circuits