Digital-to-analog and analog-to-digital conversion with metal oxide memristors for ultra-low power computing