Dislocation-based description of the sliding of a free-surface emerging grain boundary