Hardware elementary perceptron based on polyaniline memristive devices