Variational Method for Studying Solitons in the Korteweg-deVries Equation