Insights into chemical reactions at interfaces from enhanced sampling and global optimization algorithms