Utilization Of First-Principles Based Models In The Mechanistic Studies Of Thermocatalytic And Photocatalytic Processes On Transition Metal Surfaces