Probing the effect of surface chemistry on the electrical properties of ultrathin gold nanowire sensors.