Non-spike timing-dependent plasticity learning mechanism for memristive neural networks