Mechanism analysis of a flexible organic memristive memory with capacitance effect and negative differential resistance state