A novel approach of tuning trapezoidal velocity profile for energy saving in servomotor systems