A neuromorphic systems approach to in-memory computing with non-ideal memristive devices: from mitigation to exploitation | doi.page