Surface processes during thin-film growth