Development of a finite-temperature density functional approach to electrochemical reactions.