Variational approach to soliton propagation in long fibers with lumped amplifiers