A method for reducing the energy consumption of pick-and-place industrial robots