Soliton phase shift calculation for the Korteweg–de Vries equation