Analysis of current-voltage characteristics for memristive elements in pattern recognition systems