Electromechanical and Chemical Sensing at the Nanoscale: DFT and Transport Modeling