Thousands of conductance levels in memristors integrated on CMOS