Dynamics of surfaces and interfaces: From first-principles modeling to machine-learning molecular dynamics