Concept and modelling of memsensors as two terminal devices with enhanced capabilities in neuromorphic engineering