Towards data reliable crossbar-based memristive memories