Using Density Functional Theory to Correlate Charge-Transport Properties with Gas-Sensing by Organic Nanowires