Characterization and Optimization of Nanoscale Magnetometric Diamond Sensors.