Controlling the Formation of Conductive Pathways in Memristive Devices