Molecular transistor circuits: From device model to circuit simulation