Memristive Devices for Brain-Inspired Computing