Selective control of edge-channel trajectories by scanning gate microscopy