Indoles at interfaces: Calculations of electrostatic effects with density functional and molecular dynamics methods