Next-to-eikonal corrections to soft gluon radiation: a diagrammatic approach