Development of microfabrication technologies enabling the realization of memristor-based devices and building blocks for logic circuits