Conductance-based chemical sensing in metallic nanowires and metal-semiconductor nanostructures.