Self-limited single nanowire systems combining all-in-one memristive and neuromorphic functionalities