Solitonic generation of the five-dimensional black ring solution