Hierarchical modeling of OPV-based crossbar architectures