Modeling-Based Design of Memristive Devices for Brain-Inspired Computing