Neuromorphic architectures for nanoelectronic circuits